package com.stellar.auth.convert;

import com.stellar.auth.basic.entity.AuthUserRole;
import com.stellar.auth.controller.admin.authUserRole.vo.AuthUserRoleRequestPageVO;
import com.stellar.auth.controller.admin.authUserRole.vo.AuthUserRoleRequestVO;
import com.stellar.auth.controller.admin.authUserRole.vo.AuthUserRoleResponseVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户角色关联表转换器
 * @author Jqchan
 * @version 1.0
 * @date 2025-05-16 18:07:46
 */
@Mapper
public interface AuthUserRoleConvert {

    AuthUserRoleConvert INSTANCE = Mappers.getMapper(AuthUserRoleConvert.class);

    AuthUserRole convert(AuthUserRoleResponseVO responseVO);

    AuthUserRole convert(AuthUserRoleRequestVO requestVO);

    AuthUserRole convert(AuthUserRoleRequestPageVO requestPageVO);

    AuthUserRoleResponseVO convert(AuthUserRole entity);

    List<AuthUserRoleResponseVO> convertEntityToRespList(List<AuthUserRole> entities);
}
